package com.ruoyi.view.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.view.mapper.GyStatisticsMapper;
import com.ruoyi.view.domain.GyStatistics;
import com.ruoyi.view.service.IGyStatisticsService;
import com.ruoyi.common.core.text.Convert;

/**
 * gy_statisticsService业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-11
 */
@Service
public class GyStatisticsServiceImpl implements IGyStatisticsService 
{
    @Autowired
    private GyStatisticsMapper gyStatisticsMapper;

    /**
     * 查询gy_statistics
     * 
     * @param weatherTime gy_statistics主键
     * @return gy_statistics
     */
    @Override
    public GyStatistics selectGyStatisticsByWeatherTime(String weatherTime)
    {
        return gyStatisticsMapper.selectGyStatisticsByWeatherTime(weatherTime);
    }

    /**
     * 查询gy_statistics列表
     * 
     * @param gyStatistics gy_statistics
     * @return gy_statistics
     */
    @Override
    public List<GyStatistics> selectGyStatisticsList(GyStatistics gyStatistics)
    {
        return gyStatisticsMapper.selectGyStatisticsList(gyStatistics);
    }

    /**
     * 新增gy_statistics
     * 
     * @param gyStatistics gy_statistics
     * @return 结果
     */
    @Override
    public int insertGyStatistics(GyStatistics gyStatistics)
    {
        return gyStatisticsMapper.insertGyStatistics(gyStatistics);
    }

    /**
     * 修改gy_statistics
     * 
     * @param gyStatistics gy_statistics
     * @return 结果
     */
    @Override
    public int updateGyStatistics(GyStatistics gyStatistics)
    {
        return gyStatisticsMapper.updateGyStatistics(gyStatistics);
    }

    /**
     * 批量删除gy_statistics
     * 
     * @param weatherTimes 需要删除的gy_statistics主键
     * @return 结果
     */
    @Override
    public int deleteGyStatisticsByWeatherTimes(String weatherTimes)
    {
        return gyStatisticsMapper.deleteGyStatisticsByWeatherTimes(Convert.toStrArray(weatherTimes));
    }

    /**
     * 删除gy_statistics信息
     * 
     * @param weatherTime gy_statistics主键
     * @return 结果
     */
    @Override
    public int deleteGyStatisticsByWeatherTime(String weatherTime)
    {
        return gyStatisticsMapper.deleteGyStatisticsByWeatherTime(weatherTime);
    }
}
